<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '系统菜单管理';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sys-menu-index container">
<!--
    <h1><?= Html::encode($this->title) ?></h1>-->

    <p>
        <?= Html::a('创建菜单', ['create'], ['class' => 'btnBg mt20']) ?>
    </p>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'id',
            'titile',
            'show_order',
            'parent_id',
            'module_name',
            'controller_name',
            'method_name',
            'menu_url:url',
            'status',
            'display',
           /*  'menu_icon', */

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>

</div>
